﻿function MaxHref(len,txt,callback) {
    var alen = txt.length;
    if (alen >= len) {
        var lentxt = txt.substring(0, len);
        callback(lentxt + "...");
       
    } else {
        callback(txt);
    }
}